package com.lanou.utp.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author MaQingYun
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Major implements Serializable {

    private Long id; /** 专业id */
    private Long  collegeId; /** 学院id */
    private String name; /** 专业名称 */
    private Long leaderId; /** 专业负责人 */

    private Long parentId;
    private String parentNode;
    private String leaderName;
    private final Integer level = 2;
    private List<Clazz> children;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;/*创建时间*/

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;/*更新时间*/

    private Integer status;/*状态*/


}
